<?php
namespace soa\mp\cloudPrint\v1;

use soa\client;

class orderPrint  extends client
{
	/**
	 * 服务地址
	 * @var string
	 */
	public $service_url = 'http://mp.kuaidihelp.com/';
	/**
	 * 服务名称
	 * @var string
	 */
	protected $service_name = 'kuaidihelp_mp';

	//打印订单
	public function order($uid, $platform, $orders,$order_platform,$print_type = "3",$agent_guid = "", $extra_info = []){
		return $this->post("api/cloudPrint/cloudPrint/v1/orderPrint/order", compact('uid', 'platform', 'orders','order_platform','print_type','agent_guid', 'extra_info'));
	}

	//根据订单信息获取打印信息
	public function getPrintInfoByOrderInfo($order_info,$agent_guid,$print_type = "3"){
		return $this->post("api/cloudPrint/cloudPrint/v1/orderPrint/getPrintInfoByOrderInfo", compact('order_info', 'agent_guid', 'print_type'));
	}
}